<%@ page import="com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="REACTSTATUS_WAIT" value="<%=TDemands.REACTSTATUS_WAIT %>" />
<c:set var="REACTSTATUS_DONE" value="<%=TDemands.REACTSTATUS_DONE %>" />
<c:set var="REACTSTATUS_SURE" value="<%=TDemands.REACTSTATUS_SURE %>" />
<html>
<head>
<title>开票记录</title>
<link href="${ctxStatic }/xiake/css/list.css" rel='stylesheet'type='text/css' />
<link href="${ctxStatic }/xiake/css/style.css" rel='stylesheet'type='text/css' />
 <link href="${ctxStatic }/index/css/record.css" rel="stylesheet">
<%@ include file="/WEB-INF/views/layouts/head.jsp" %>
<script src="${ctxStatic }/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic }/index/js/Personal.js"></script>
<script type="text/javascript">
$(function(){
	$('#inf_safe').trigger('click');
	var tabid  = "${param.id}";
	//既触发了a标签的点击事件，又触发了页面跳转   
	if(tabid.length>0){
		document.getElementById(tabid).click();   
	}
	$("#tab").click(function(){
		window.location.href = "${ctxFront}/orders/orderList";
	})
	$("#per").click(function(){
		window.location.href = "${ctxFront }/modifyUserInfo";
	})
	$("#fp").click(function(){
		window.location.href = "${ctxFront }/usersRcpt/ordersList";
	})
});
</script>
</head>
<div class="member">
    <div class="member_1">
        <h4>会员中心</h4>
    </div>
    <div class="container">

        <ul class="tabs" style="float: left">
            <li id="tab"><a href="#tab2">我的订单</a></li>
            <li id="fp"><a href="#tab3">关于发票</a></li>
             <li id="per"><a href="#tab1">个人中心</a></li>

        </ul>
    </div>
    <div class="infor_mange" style="float: right">
        <div class="manage">
            <h4 class="manage_0">开票记录&nbsp;:</h4>
<div>
    <table>
        <tr>
            <td>开票抬头</td>
            <td>开票金额</td>
            <td>申请时间</td>
            <td>状态</td>
        </tr>
<c:forEach items="${page.list}" var="rcpt">
        <tr style="height: 50px;">
            <td>${rcpt.title }</td>
            <td>${rcpt.rcptamount+rcpt.outkmsfee+rcpt.outtimefee+rcpt.dirverfee }</td>
            <td><fmt:formatDate value="${rcpt.createDate }" pattern="yyyy-MM-dd"/></td>
            <td>${rcpt.rcptStatus == '1'?'开票申请中':'' }${rcpt.rcptStatus == '2'?'已确认开票':'' }</td>
        </tr></c:forEach>
    </table>
</div>
        </div>

    </div>
</div>
<%@ include file="/WEB-INF/views/layouts/foot.jsp" %>
</body>
</html>